<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>单条件</title>
    <script type="text/javascript">
        var score=86;
        var tainQi=true;   //true 晴天 false 非晴天
        if (score==100&&tainQi){
            console.log('到公园玩。')
        }else{
            console.log('在家。')
        }
    </script>
</head>
<body>

</body>
</html>